home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / Apache 1.0 / conf / httpd.conf-dist < prev    next >
Text File  |  1995-12-04  |  5KB  |  132 lines

  1. # This is the main server configuration file. See URL http://www.apache.org/
  2. # for instructions.
  3.  
  4. # Do NOT simply read the instructions in here without understanding
  5. # what they do, if you are unsure consult the online docs. You have been
  6. # warned.  
  7.  
  8. # Originally by Rob McCool
  9.  
  10. # ServerType is either inetd, or standalone.
  11.  
  12. ServerType standalone
  13.  
  14. # If you are running from inetd, go to "ServerAdmin".
  15.  
  16. # Port: The port the standalone listens to. For ports < 1023, you will
  17. # need httpd to be run as root initially.
  18.  
  19. Port 80
  20.  
  21. # If you wish httpd to run as a different user or group, you must run
  22. # httpd as root initially and it will switch.  
  23.  
  24. # User/Group: The name (or #number) of the user/group to run httpd as.
  25. #  On SCO (ODT 3) use User nouser and Group nogroup
  26. User nobody
  27. Group #-1
  28.  
  29. # ServerAdmin: Your address, where problems with the server should be
  30. # e-mailed.
  31.  
  32. ServerAdmin you@your.address
  33.  
  34. # ServerRoot: The directory the server's config, error, and log files
  35. # are kept in
  36.  
  37. ServerRoot /usr/local/etc/httpd
  38.  
  39. # BindAddress: You can support virtual hosts with this option. This option
  40. # is used to tell the server which IP address to listen to. It can either
  41. # contain "*", an IP address, or a fully qualified Internet domain name.
  42. # See also the VirtualHost directive.
  43.  
  44. #BindAddress *
  45.  
  46. # ErrorLog: The location of the error log file. If this does not start
  47. # with /, ServerRoot is prepended to it.
  48.  
  49. ErrorLog logs/error_log
  50.  
  51. # TransferLog: The location of the transfer log file. If this does not
  52. # start with /, ServerRoot is prepended to it.
  53.  
  54. TransferLog logs/access_log
  55.  
  56. # PidFile: The file the server should log its pid to
  57. PidFile logs/httpd.pid
  58.  
  59. # ServerName allows you to set a host name which is sent back to clients for
  60. # your server if it's different than the one the program would get (i.e. use
  61. # "www" instead of the host's real name).
  62. #
  63. # Note: You cannot just invent host names and hope they work. The name you 
  64. # define here must be a valid DNS name for your host. If you don't understand
  65. # this, ask your network administrator.
  66.  
  67. #ServerName new.host.name
  68.  
  69. # CacheNegotiatedDocs: By default, Apache sends Pragma: no-cache with each
  70. # document that was negotiated on the basis of content. This asks proxy
  71. # servers not to cache the document. Uncommenting the following line disables
  72. # this behavior, and proxies will be allowed to cache the documents.
  73.  
  74. #CacheNegotiatedDocs
  75.  
  76. # Timeout: The number of seconds before receives and sends time out
  77. #  n.b. the compiled default is 1200 (20 minutes !)
  78.  
  79. Timeout 400
  80.  
  81. # Server-pool size regulation.  Rather than making you guess how many
  82. # server processes you need, Apache dynamically adapts to the load it
  83. # sees --- that is, it tries to maintain enough server processes to
  84. # handle the current load, plus a few spare servers to handle transient
  85. # load spikes (e.g., multiple simultaneous requests from a single
  86. # Netscape browser).
  87.  
  88. # It does this by periodically checking how many servers are waiting
  89. # for a request.  If there are fewer than MinSpareServers, it creates
  90. # a new spare.  If there are more than MaxSpareServers, some of the
  91. # spares die off.  These values are probably OK for most sites ---
  92.  
  93. MinSpareServers 5
  94. MaxSpareServers 10
  95.  
  96. # Number of servers to start --- should be a reasonable ballpark figure.
  97.  
  98. StartServers 5
  99.  
  100. # Limit on total number of servers running, i.e., limit on the number
  101. # of clients who can simultaneously connect --- if this limit is ever
  102. # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
  103. # It is intended mainly as a brake to keep a runaway server from taking
  104. # Unix with it as it spirals down...
  105.  
  106. MaxClients 150
  107.  
  108. # MaxRequestsPerChild: the number of requests each child process is
  109. #  allowed to process before the child dies.
  110. #  The child will exit so as to avoid problems after prolonged use when
  111. #  Apache (and maybe the libraries it uses) leak.  On most systems, this
  112. #  isn't really needed, but a few (such as Solaris) do have notable leaks
  113. #  in the libraries.
  114.  
  115. MaxRequestsPerChild 30
  116.  
  117. # VirtualHost: Allows the daemon to respond to requests for more than one
  118. # server address, if your server machine is configured to accept IP packets
  119. # for multiple addresses. This can be accomplished with the ifconfig 
  120. # alias flag, or through kernel patches like VIF.
  121.  
  122. # Any httpd.conf or srm.conf directive may go into a VirtualHost command.
  123. # See alto the BindAddress entry.
  124.  
  125. #<VirtualHost host.foo.com>
  126. #ServerAdmin webmaster@host.foo.com
  127. #DocumentRoot /www/docs/host.foo.com
  128. #ServerName host.foo.com
  129. #ErrorLog logs/host.foo.com-error_log
  130. #TransferLog logs/host.foo.com-access_log
  131. #</VirtualHost>
  132.